package sustOJ;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/10/14 17:55
 */
public class Solution_3595 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();//行数
        int m = scanner.nextInt();//列数
        char[][] arr = new char[n][m];
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                if((i+j)%3==0){//可以让每一行或者每一列，每三个，必有一个S，来避免三个连续
                    arr[i][j] = 'S';
                }else {
                    arr[i][j]='L';
                }
            }
        }
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < m; j++) {
                System.out.print(arr[i][j]);
            }
            System.out.println();
        }
    }
}
